export const routes = [{
  // 重定向到主页
  path: '/',
  redirect: '/home'
}, {
  // 登录页
  path: '/login',
  component: () => import('@/views/login')
}, {
  // 用户主页
  path: '/home',
  component: () => import('@/views/home'),
  children: [{
    // 个人信息
    path: '/home/usermsg',
    component: () => import('@/views/home/usermsg')
  }, {
    // 权限管理
    path: '/home/usermanage/permi',
    component: () => import('@/views/home/usermanage/permi')
  }, {
    // 角色管理
    path: '/home/usermanage/role',
    component: () => import('@/views/home/usermanage/role')
  }, {
    // 用户管理
    path: '/home/usermanage/user',
    component: () => import('@/views/home/usermanage/user')
  }, {
    // 字典管理
    path: '/home/system/dictionary',
    component: () => import('@/views/home/system/dictionary')
  }, {
    // 消息模板
    path: '/home/message/msgtemplate',
    component: () => import('@/views/home/message/msgtemplate')
  }, {
    // 测试1 文件上传
    path: '/home/test',
    component: () => import('@/views/test')
  }, {
    // 测试2 websocket
    path: '/home/test2',
    component: () => import('@/views/test/websocketTest')
  }]
},
  // 别的页面（404）
  // {
  //   path: '/:pathMatch(.*)*',
  //   component: () => import('@/views/404/index.vue')
  // }
]